/*
 *  Gurr - A multiprotocol chat client for Android
 *  Copyright (C) 2011 Malte Aschermann, Wilfried Ramaker
 *  
 *  This file is part of Gurr.
 *  
 *  Gurr is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  Gurr is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Gurr.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.masc.gurr.net;

public class Contact {

	private String name;
	private int id;
	private String uid;
	private String statusMsg;
	private ProtocolType type;
	private ContactStatus status;
	private Group fGroupRef;
	
	public Contact(String uid, ProtocolType type) {
		this.uid = uid;
		this.type = type;
	}
	public Contact(int id, ProtocolType type) {
		this.id = id;
		this.type = type;
	}
	
	
	public Contact(String uid, String name, ProtocolType type) {
		this.uid = uid;
		this.name = name;
		this.type = type;
	}
	
	public Contact(String uid, String name, ProtocolType type, String pStrStatusMsg) {
		this.uid = uid;
		this.name = name;
		this.type = type;
		statusMsg = pStrStatusMsg;
	}
	
	public Contact(String uid, String name, ContactStatus contactStatus, ProtocolType type) {
		this.uid = uid;
		this.name = name;
		this.status = contactStatus;
		this.type = type;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatusMsg() {
		return statusMsg;
	}

	public void setStatusMsg(String statusMsg) {
		this.statusMsg = statusMsg;
	}

	public String getUid() {
		return uid;
	}
	
	public ProtocolType getType() {
		return type;
	}

	public String getStatus() {
		return status.toString();
	}

	public void setStatus(long status) {
		this.status.setStatus(status);
	}
	
	public void setGroupRef(Group group) {
		this.fGroupRef = group;
	}
	
	public Group getGroupRef() {
		return this.fGroupRef;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
}
